package asia.hymsk.spring.pojo.mongodb;

import asia.hymsk.spring.pojo.mongodb.Recs;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Arrays;

/**
 * ClassName: UserRecs
 * Package: com.example.demo.test.pojo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("UserRecs")
public class UserRecs {
    @Id
    private String id;
    @Field
    private Integer userId;//用户ID
    @Field
    private Recs recs[];//推荐给⽤户的商品集合
}
